package spring.mvc;


import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
import java.util.HashMap;
import java.util.Map;


public class HomeController implements Controller {

    @Override
    public ModelAndView handleRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws Exception {
        String hello = "welcome";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("1", "ONE1");
        map.put("2", "ONE2");
        map.put("3", "ONE3");

        return new ModelAndView("/welcome", "map", map);
    }
}
